package HandleDB;

import java.util.ArrayList;

import Communication.MessageHandle;
import Communication.Client;
import Entity.Pattern;
import Entity.Product;



public class PatternQuery {
	private ArrayList<Pattern> patternList;
	
	public PatternQuery(Client client) {
		patternList = new ArrayList<Pattern>();		
		client.setPatternList(patternList); 
	}
		
		
		public void insertPattern( Client client ,Pattern Ptr)
		{
			String str= "INSERT INTO patterns (PatternID) VALUES ("+  Ptr.getPatternID() + " ,"+Ptr.getPatternProduct()+","
			         +Ptr.getPatternName()+","+Ptr.getPatternMessage()+") ";	
		}
		
		
		

		public  boolean isEmpty(String field) {
			if (field.isEmpty())
				return true;
			return false;
		}
		
		
		
		
}